package com.fmsz.physicalheadline.entity.news;

import android.content.Context;
import android.content.Intent;
import android.view.View;

import com.fmsz.physicalheadline.activitys.news.FocusImageActivity;
import com.fmsz.physicalheadline.activitys.news.FocusSecTypeActivity;

import java.util.List;

/**
 * Created by Administrator on 2016/12/15.
 */

public class NewsContents {
    private String id,user_id,dashboard_id,dashboard_type,dashboard_data,title,text,image,content_type;
    private String status,show_type,label,create_time,editor,update_time,note_num;
    private int image_type;
    private String source_link,cbs_flag,expire_flag;
    private NewsUser user;
    private List<NewsChannels> channels;
    private List<String> images;
    private int video_type;
    private String video_link;

    public String getVideo_link() {
        return video_link;
    }

    public void setVideo_link(String video_link) {
        this.video_link = video_link;
    }

    public int getVideo_type() {
        return video_type;
    }

    public void setVideo_type(int video_type) {
        this.video_type = video_type;
    }

    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

    public String getCbs_flag() {
        return cbs_flag;
    }

    public void setCbs_flag(String cbs_flag) {
        this.cbs_flag = cbs_flag;
    }

    public List<NewsChannels> getChannels() {
        return channels;
    }

    public void setChannels(List<NewsChannels> channels) {
        this.channels = channels;
    }

    public String getContent_type() {
        return content_type;
    }

    public void setContent_type(String content_type) {
        this.content_type = content_type;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getDashboard_data() {
        return dashboard_data;
    }

    public void setDashboard_data(String dashboard_data) {
        this.dashboard_data = dashboard_data;
    }

    public String getDashboard_id() {
        return dashboard_id;
    }

    public void setDashboard_id(String dashboard_id) {
        this.dashboard_id = dashboard_id;
    }

    public String getDashboard_type() {
        return dashboard_type;
    }

    public void setDashboard_type(String dashboard_type) {
        this.dashboard_type = dashboard_type;
    }

    public String getEditor() {
        return editor;
    }

    public void setEditor(String editor) {
        this.editor = editor;
    }

    public String getExpire_flag() {
        return expire_flag;
    }

    public void setExpire_flag(String expire_flag) {
        this.expire_flag = expire_flag;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getImage_type() {
        return image_type;
    }

    public void setImage_type(int image_type) {
        this.image_type = image_type;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getNote_num() {
        return note_num;
    }

    public void setNote_num(String note_num) {
        this.note_num = note_num;
    }

    public String getShow_type() {
        return show_type;
    }

    public void setShow_type(String show_type) {
        this.show_type = show_type;
    }

    public String getSource_link() {
        return source_link;
    }

    public void setSource_link(String source_link) {
        this.source_link = source_link;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    public NewsUser getUser() {
        return user;
    }

    public void setUser(NewsUser user) {
        this.user = user;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public void click(View view){
        Intent intent = new Intent();
        intent.setClass(view.getContext(), FocusSecTypeActivity.class);
        intent.putExtra("link",id);
        intent.putExtra("dashboard_id",dashboard_id);
        intent.putExtra("dashboard_data",dashboard_data);
        intent.putExtra("dashboard_type",dashboard_type);
        view.getContext().startActivity(intent);
    }
}
